package monsmon.game.tmlt;

import monsmon.game.parse.Params;

public class MoveT{

	public final String name, fname;

	public final int acc, sattk, attk;
	
	public MoveT(Params para){
		acc = para.geti("acc", 0);
		sattk = para.geti("spattk", 0);
		name = para.gets("name", "ERROR");
		attk = para.geti("attk", 0);
		fname = para.gets("fname", name);
	}

	public MoveT(String name, String fname, int acc, int sattk, int attk){
		this.name = name;
		this.fname = "".equals(fname) ? name : fname;
		this.acc = acc;
		this.sattk = sattk;
		this.attk = attk;
	}

	public String toString(){
		return "MoveT: " + name + ", acc: " + acc + ", attk: " + attk
			+ ", sattk: " + sattk;
	}
}


